"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
var vue_router_1 = require("vue-router");
var icons_vue_1 = require("@element-plus/icons-vue");
// 路由实例
var router = (0, vue_router_1.useRouter)();
// 登录表单
var loginForm = (0, vue_1.reactive)({
    username: '',
    password: '',
    code: '',
    remember: false
});
// 表单验证规则
var loginRules = {
    username: [
        { required: true, message: '请输入账号', trigger: 'blur' },
        { min: 3, max: 20, message: '账号长度在 3 到 20 个字符', trigger: 'blur' }
    ],
    password: [
        { required: true, message: '请输入密码', trigger: 'blur' },
        { min: 6, max: 20, message: '密码长度在 6 到 20 个字符', trigger: 'blur' }
    ],
    code: [
        { required: true, message: '请输入验证码', trigger: 'blur' },
        { len: 4, message: '验证码长度为4个字符', trigger: 'blur' }
    ]
};
// 忘记密码表单
var forgotForm = (0, vue_1.reactive)({
    username: '',
    email: '',
    verifyCode: ''
});
var forgotRules = {
    username: [
        { required: true, message: '请输入账号', trigger: 'blur' }
    ],
    email: [
        { required: true, message: '请输入邮箱', trigger: 'blur' },
        { type: 'email', message: '请输入正确的邮箱格式', trigger: 'blur' }
    ],
    verifyCode: [
        { required: true, message: '请输入验证码', trigger: 'blur' }
    ]
};
// 状态管理
var loginFormRef = (0, vue_1.ref)(null);
var forgotFormRef = (0, vue_1.ref)(null);
var loginLoading = (0, vue_1.ref)(false);
var showForgotDialog = (0, vue_1.ref)(false);
var codeUrl = (0, vue_1.ref)('');
var sendCodeDisabled = (0, vue_1.ref)(false);
var sendCodeText = (0, vue_1.ref)('发送验证码');
var countdown = (0, vue_1.ref)(60);
// 输入框焦点状态
var usernameFocus = (0, vue_1.ref)(false);
var passwordFocus = (0, vue_1.ref)(false);
var codeFocus = (0, vue_1.ref)(false);
// 初始化验证码
(0, vue_1.onMounted)(function () {
    refreshCode();
    // 读取本地存储的记住密码
    var savedUser = localStorage.getItem('savedUser');
    if (savedUser) {
        var _a = JSON.parse(savedUser), username = _a.username, password = _a.password;
        loginForm.username = username;
        loginForm.password = password;
        loginForm.remember = true;
    }
});
// 刷新验证码
var refreshCode = function () {
    // 实际项目中这里应该请求后端接口获取验证码
    // 这里用随机数模拟
    var random = Math.random().toString(36).substring(2, 6).toUpperCase();
    // 生成简单的验证码图片（实际项目中应该是后端返回的图片URL）
    codeUrl.value = "data:image/svg+xml;base64,".concat(btoa("\n    <svg width=\"120\" height=\"40\" xmlns=\"http://www.w3.org/2000/svg\">\n      <rect width=\"100%\" height=\"100%\" fill=\"#f5f7fa\" />\n      <text x=\"20\" y=\"28\" font-size=\"20\" font-weight=\"bold\" fill=\"#409eff\">".concat(random, "</text>\n      <line x1=\"10\" y1=\"").concat(Math.random() * 30 + 5, "\" x2=\"110\" y2=\"").concat(Math.random() * 30 + 5, "\" stroke=\"#ddd\" stroke-width=\"1\" />\n      <line x1=\"10\" y1=\"").concat(Math.random() * 30 + 5, "\" x2=\"110\" y2=\"").concat(Math.random() * 30 + 5, "\" stroke=\"#ddd\" stroke-width=\"1\" />\n    </svg>\n  ").trim()));
};
// 发送验证码
var sendVerifyCode = function () {
    forgotFormRef.value.validateField(['username', 'email'], function (err) {
        if (!err) {
            // 模拟发送验证码
            sendCodeDisabled.value = true;
            var timer_1 = setInterval(function () {
                countdown.value--;
                sendCodeText.value = "".concat(countdown.value, "s\u540E\u91CD\u53D1");
                if (countdown.value <= 0) {
                    clearInterval(timer_1);
                    sendCodeDisabled.value = false;
                    sendCodeText.value = '发送验证码';
                    countdown.value = 60;
                }
            }, 1000);
            element_plus_1.ElMessage.success('验证码已发送到您的邮箱');
        }
    });
};
// 登录处理
var handleLogin = function () {
    loginFormRef.value.validate(function (valid) {
        if (valid) {
            loginLoading.value = true;
            // 模拟登录请求
            setTimeout(function () {
                loginLoading.value = false;
                // 记住密码
                if (loginForm.remember) {
                    localStorage.setItem('savedUser', JSON.stringify({
                        username: loginForm.username,
                        password: loginForm.password
                    }));
                    localStorage.setItem("token", "2131232213312");
                }
                else {
                    localStorage.removeItem('savedUser');
                }
                element_plus_1.ElMessage.success('登录成功');
                router.push('/');
            }, 1500);
        }
    });
};
// 重置密码
var handleResetPassword = function () {
    forgotFormRef.value.validate(function (valid) {
        if (valid) {
            // 模拟重置密码请求
            setTimeout(function () {
                element_plus_1.ElMessage.success('密码重置链接已发送到您的邮箱');
                showForgotDialog.value = false;
            }, 1000);
        }
    });
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['login-card']} */ ;
/** @type {__VLS_StyleScopedClasses['el-input']} */ ;
/** @type {__VLS_StyleScopedClasses['code-refresh']} */ ;
/** @type {__VLS_StyleScopedClasses['login-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['login-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['social-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['login-card']} */ ;
/** @type {__VLS_StyleScopedClasses['circle-1']} */ ;
/** @type {__VLS_StyleScopedClasses['circle-2']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "login-container" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "bg-decoration" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "circle circle-1" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "circle circle-2" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "circle circle-3" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "login-card" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "login-header" }));
__VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)(__assign({ class: "login-title" }));
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)(__assign({ class: "login-desc" }));
var __VLS_0 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign({ ref: "loginFormRef", model: (__VLS_ctx.loginForm), rules: (__VLS_ctx.loginRules) }, { class: "login-form" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign({ ref: "loginFormRef", model: (__VLS_ctx.loginForm), rules: (__VLS_ctx.loginRules) }, { class: "login-form" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
/** @type {typeof __VLS_ctx.loginFormRef} */ ;
var __VLS_4 = {};
var __VLS_6 = __VLS_3.slots.default;
// @ts-ignore
[loginForm, loginRules, loginFormRef,];
var __VLS_7 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_8 = __VLS_asFunctionalComponent(__VLS_7, new __VLS_7({
    prop: "username",
}));
var __VLS_9 = __VLS_8.apply(void 0, __spreadArray([{
        prop: "username",
    }], __VLS_functionalComponentArgsRest(__VLS_8), false));
var __VLS_11 = __VLS_10.slots.default;
var __VLS_12 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12(__assign(__assign(__assign({ 'onFocus': {} }, { 'onBlur': {} }), { modelValue: (__VLS_ctx.loginForm.username), placeholder: "请输入账号", prefixIcon: "User" }), { class: ({ 'input-focus': __VLS_ctx.usernameFocus }) })));
var __VLS_14 = __VLS_13.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onFocus': {} }, { 'onBlur': {} }), { modelValue: (__VLS_ctx.loginForm.username), placeholder: "请输入账号", prefixIcon: "User" }), { class: ({ 'input-focus': __VLS_ctx.usernameFocus }) })], __VLS_functionalComponentArgsRest(__VLS_13), false));
var __VLS_16;
var __VLS_17;
var __VLS_18 = ({ focus: {} },
    { onFocus: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.usernameFocus = true;
            // @ts-ignore
            [loginForm, usernameFocus, usernameFocus,];
        } });
var __VLS_19 = ({ blur: {} },
    { onBlur: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.usernameFocus = false;
            // @ts-ignore
            [usernameFocus,];
        } });
var __VLS_15;
var __VLS_10;
var __VLS_21 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21({
    prop: "password",
}));
var __VLS_23 = __VLS_22.apply(void 0, __spreadArray([{
        prop: "password",
    }], __VLS_functionalComponentArgsRest(__VLS_22), false));
var __VLS_25 = __VLS_24.slots.default;
var __VLS_26 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_27 = __VLS_asFunctionalComponent(__VLS_26, new __VLS_26(__assign(__assign(__assign(__assign({ 'onFocus': {} }, { 'onBlur': {} }), { modelValue: (__VLS_ctx.loginForm.password), type: "password", placeholder: "请输入密码", prefixIcon: "Lock" }), { class: ({ 'input-focus': __VLS_ctx.passwordFocus }) }), { showPassword: true })));
var __VLS_28 = __VLS_27.apply(void 0, __spreadArray([__assign(__assign(__assign(__assign({ 'onFocus': {} }, { 'onBlur': {} }), { modelValue: (__VLS_ctx.loginForm.password), type: "password", placeholder: "请输入密码", prefixIcon: "Lock" }), { class: ({ 'input-focus': __VLS_ctx.passwordFocus }) }), { showPassword: true })], __VLS_functionalComponentArgsRest(__VLS_27), false));
var __VLS_30;
var __VLS_31;
var __VLS_32 = ({ focus: {} },
    { onFocus: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.passwordFocus = true;
            // @ts-ignore
            [loginForm, passwordFocus, passwordFocus,];
        } });
var __VLS_33 = ({ blur: {} },
    { onBlur: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.passwordFocus = false;
            // @ts-ignore
            [passwordFocus,];
        } });
var __VLS_29;
var __VLS_24;
var __VLS_35 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_36 = __VLS_asFunctionalComponent(__VLS_35, new __VLS_35({
    prop: "code",
}));
var __VLS_37 = __VLS_36.apply(void 0, __spreadArray([{
        prop: "code",
    }], __VLS_functionalComponentArgsRest(__VLS_36), false));
var __VLS_39 = __VLS_38.slots.default;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "code-container" }));
var __VLS_40 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40(__assign(__assign(__assign({ 'onFocus': {} }, { 'onBlur': {} }), { modelValue: (__VLS_ctx.loginForm.code), placeholder: "请输入验证码", prefixIcon: "Key" }), { class: ({ 'input-focus': __VLS_ctx.codeFocus }) })));
var __VLS_42 = __VLS_41.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onFocus': {} }, { 'onBlur': {} }), { modelValue: (__VLS_ctx.loginForm.code), placeholder: "请输入验证码", prefixIcon: "Key" }), { class: ({ 'input-focus': __VLS_ctx.codeFocus }) })], __VLS_functionalComponentArgsRest(__VLS_41), false));
var __VLS_44;
var __VLS_45;
var __VLS_46 = ({ focus: {} },
    { onFocus: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.codeFocus = true;
            // @ts-ignore
            [loginForm, codeFocus, codeFocus,];
        } });
var __VLS_47 = ({ blur: {} },
    { onBlur: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.codeFocus = false;
            // @ts-ignore
            [codeFocus,];
        } });
var __VLS_43;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ onClick: (__VLS_ctx.refreshCode) }, { class: "code-img" }));
// @ts-ignore
[refreshCode,];
__VLS_asFunctionalElement(__VLS_elements.img)(__assign({ src: (__VLS_ctx.codeUrl), alt: "验证码" }, { class: "code-img-src" }));
// @ts-ignore
[codeUrl,];
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ onClick: (__VLS_ctx.refreshCode) }, { class: "code-refresh" }));
// @ts-ignore
[refreshCode,];
var __VLS_49 = {}.ElIcon;
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
// @ts-ignore
ElIcon;
// @ts-ignore
var __VLS_50 = __VLS_asFunctionalComponent(__VLS_49, new __VLS_49({
    size: "16",
}));
var __VLS_51 = __VLS_50.apply(void 0, __spreadArray([{
        size: "16",
    }], __VLS_functionalComponentArgsRest(__VLS_50), false));
var __VLS_53 = __VLS_52.slots.default;
var __VLS_54 = {}.Refresh;
/** @type {[typeof __VLS_components.Refresh, ]} */ ;
// @ts-ignore
icons_vue_1.Refresh;
// @ts-ignore
var __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({}));
var __VLS_56 = __VLS_55.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_55), false));
var __VLS_52;
var __VLS_38;
var __VLS_59 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_60 = __VLS_asFunctionalComponent(__VLS_59, new __VLS_59(__assign({ class: "remember-item" })));
var __VLS_61 = __VLS_60.apply(void 0, __spreadArray([__assign({ class: "remember-item" })], __VLS_functionalComponentArgsRest(__VLS_60), false));
var __VLS_63 = __VLS_62.slots.default;
var __VLS_64 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({
    modelValue: (__VLS_ctx.loginForm.remember),
    label: "记住密码",
}));
var __VLS_66 = __VLS_65.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.loginForm.remember),
        label: "记住密码",
    }], __VLS_functionalComponentArgsRest(__VLS_65), false));
// @ts-ignore
[loginForm,];
var __VLS_69 = {}.ElLink;
/** @type {[typeof __VLS_components.ElLink, typeof __VLS_components.elLink, typeof __VLS_components.ElLink, typeof __VLS_components.elLink, ]} */ ;
// @ts-ignore
ElLink;
// @ts-ignore
var __VLS_70 = __VLS_asFunctionalComponent(__VLS_69, new __VLS_69(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "forgot-link" })));
var __VLS_71 = __VLS_70.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "forgot-link" })], __VLS_functionalComponentArgsRest(__VLS_70), false));
var __VLS_73;
var __VLS_74;
var __VLS_75 = ({ click: {} },
    { onClick: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.showForgotDialog = true;
            // @ts-ignore
            [showForgotDialog,];
        } });
var __VLS_76 = __VLS_72.slots.default;
var __VLS_72;
var __VLS_62;
var __VLS_77 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_78 = __VLS_asFunctionalComponent(__VLS_77, new __VLS_77({}));
var __VLS_79 = __VLS_78.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_78), false));
var __VLS_81 = __VLS_80.slots.default;
var __VLS_82 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_83 = __VLS_asFunctionalComponent(__VLS_82, new __VLS_82(__assign(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "login-btn" }), { loading: (__VLS_ctx.loginLoading) })));
var __VLS_84 = __VLS_83.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "login-btn" }), { loading: (__VLS_ctx.loginLoading) })], __VLS_functionalComponentArgsRest(__VLS_83), false));
var __VLS_86;
var __VLS_87;
var __VLS_88 = ({ click: {} },
    { onClick: (__VLS_ctx.handleLogin) });
var __VLS_89 = __VLS_85.slots.default;
// @ts-ignore
[loginLoading, handleLogin,];
var __VLS_85;
var __VLS_80;
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "other-login" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "other-line" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: "other-text" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "other-line" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "social-login" }));
var __VLS_90 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_91 = __VLS_asFunctionalComponent(__VLS_90, new __VLS_90(__assign(__assign({ icon: "Wechat" }, { class: "social-btn wechat" }), { circle: true })));
var __VLS_92 = __VLS_91.apply(void 0, __spreadArray([__assign(__assign({ icon: "Wechat" }, { class: "social-btn wechat" }), { circle: true })], __VLS_functionalComponentArgsRest(__VLS_91), false));
var __VLS_95 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_96 = __VLS_asFunctionalComponent(__VLS_95, new __VLS_95(__assign(__assign({ icon: "Alipay" }, { class: "social-btn alipay" }), { circle: true })));
var __VLS_97 = __VLS_96.apply(void 0, __spreadArray([__assign(__assign({ icon: "Alipay" }, { class: "social-btn alipay" }), { circle: true })], __VLS_functionalComponentArgsRest(__VLS_96), false));
var __VLS_100 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_101 = __VLS_asFunctionalComponent(__VLS_100, new __VLS_100(__assign(__assign({ icon: "Twitter" }, { class: "social-btn twitter" }), { circle: true })));
var __VLS_102 = __VLS_101.apply(void 0, __spreadArray([__assign(__assign({ icon: "Twitter" }, { class: "social-btn twitter" }), { circle: true })], __VLS_functionalComponentArgsRest(__VLS_101), false));
var __VLS_105 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_106 = __VLS_asFunctionalComponent(__VLS_105, new __VLS_105({
    title: "忘记密码",
    modelValue: (__VLS_ctx.showForgotDialog),
    width: "400px",
}));
var __VLS_107 = __VLS_106.apply(void 0, __spreadArray([{
        title: "忘记密码",
        modelValue: (__VLS_ctx.showForgotDialog),
        width: "400px",
    }], __VLS_functionalComponentArgsRest(__VLS_106), false));
var __VLS_109 = __VLS_108.slots.default;
// @ts-ignore
[showForgotDialog,];
var __VLS_110 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_111 = __VLS_asFunctionalComponent(__VLS_110, new __VLS_110({
    model: (__VLS_ctx.forgotForm),
    rules: (__VLS_ctx.forgotRules),
    ref: "forgotFormRef",
}));
var __VLS_112 = __VLS_111.apply(void 0, __spreadArray([{
        model: (__VLS_ctx.forgotForm),
        rules: (__VLS_ctx.forgotRules),
        ref: "forgotFormRef",
    }], __VLS_functionalComponentArgsRest(__VLS_111), false));
/** @type {typeof __VLS_ctx.forgotFormRef} */ ;
var __VLS_114 = {};
var __VLS_116 = __VLS_113.slots.default;
// @ts-ignore
[forgotForm, forgotRules, forgotFormRef,];
var __VLS_117 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_118 = __VLS_asFunctionalComponent(__VLS_117, new __VLS_117({
    prop: "username",
}));
var __VLS_119 = __VLS_118.apply(void 0, __spreadArray([{
        prop: "username",
    }], __VLS_functionalComponentArgsRest(__VLS_118), false));
var __VLS_121 = __VLS_120.slots.default;
var __VLS_122 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_123 = __VLS_asFunctionalComponent(__VLS_122, new __VLS_122({
    modelValue: (__VLS_ctx.forgotForm.username),
    placeholder: "请输入账号",
}));
var __VLS_124 = __VLS_123.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.forgotForm.username),
        placeholder: "请输入账号",
    }], __VLS_functionalComponentArgsRest(__VLS_123), false));
// @ts-ignore
[forgotForm,];
var __VLS_120;
var __VLS_127 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_128 = __VLS_asFunctionalComponent(__VLS_127, new __VLS_127({
    prop: "email",
}));
var __VLS_129 = __VLS_128.apply(void 0, __spreadArray([{
        prop: "email",
    }], __VLS_functionalComponentArgsRest(__VLS_128), false));
var __VLS_131 = __VLS_130.slots.default;
var __VLS_132 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_133 = __VLS_asFunctionalComponent(__VLS_132, new __VLS_132({
    modelValue: (__VLS_ctx.forgotForm.email),
    placeholder: "请输入注册邮箱",
}));
var __VLS_134 = __VLS_133.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.forgotForm.email),
        placeholder: "请输入注册邮箱",
    }], __VLS_functionalComponentArgsRest(__VLS_133), false));
// @ts-ignore
[forgotForm,];
var __VLS_130;
var __VLS_137 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_138 = __VLS_asFunctionalComponent(__VLS_137, new __VLS_137({
    prop: "verifyCode",
}));
var __VLS_139 = __VLS_138.apply(void 0, __spreadArray([{
        prop: "verifyCode",
    }], __VLS_functionalComponentArgsRest(__VLS_138), false));
var __VLS_141 = __VLS_140.slots.default;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "code-container" }));
var __VLS_142 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_143 = __VLS_asFunctionalComponent(__VLS_142, new __VLS_142({
    modelValue: (__VLS_ctx.forgotForm.verifyCode),
    placeholder: "请输入验证码",
}));
var __VLS_144 = __VLS_143.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.forgotForm.verifyCode),
        placeholder: "请输入验证码",
    }], __VLS_functionalComponentArgsRest(__VLS_143), false));
// @ts-ignore
[forgotForm,];
var __VLS_147 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_148 = __VLS_asFunctionalComponent(__VLS_147, new __VLS_147(__assign(__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "send-code" }), { disabled: (__VLS_ctx.sendCodeDisabled) })));
var __VLS_149 = __VLS_148.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "send-code" }), { disabled: (__VLS_ctx.sendCodeDisabled) })], __VLS_functionalComponentArgsRest(__VLS_148), false));
var __VLS_151;
var __VLS_152;
var __VLS_153 = ({ click: {} },
    { onClick: (__VLS_ctx.sendVerifyCode) });
var __VLS_154 = __VLS_150.slots.default;
// @ts-ignore
[sendCodeDisabled, sendVerifyCode,];
(__VLS_ctx.sendCodeText);
// @ts-ignore
[sendCodeText,];
var __VLS_150;
var __VLS_140;
var __VLS_113;
{
    var __VLS_155 = __VLS_108.slots.footer;
    var __VLS_156 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_157 = __VLS_asFunctionalComponent(__VLS_156, new __VLS_156(__assign({ 'onClick': {} })));
    var __VLS_158 = __VLS_157.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_157), false));
    var __VLS_160 = void 0;
    var __VLS_161 = void 0;
    var __VLS_162 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.showForgotDialog = false;
                // @ts-ignore
                [showForgotDialog,];
            } });
    var __VLS_163 = __VLS_159.slots.default;
    var __VLS_159;
    var __VLS_164 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_165 = __VLS_asFunctionalComponent(__VLS_164, new __VLS_164(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_166 = __VLS_165.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_165), false));
    var __VLS_168 = void 0;
    var __VLS_169 = void 0;
    var __VLS_170 = ({ click: {} },
        { onClick: (__VLS_ctx.handleResetPassword) });
    var __VLS_171 = __VLS_167.slots.default;
    // @ts-ignore
    [handleResetPassword,];
    var __VLS_167;
}
var __VLS_108;
/** @type {__VLS_StyleScopedClasses['login-container']} */ ;
/** @type {__VLS_StyleScopedClasses['bg-decoration']} */ ;
/** @type {__VLS_StyleScopedClasses['circle']} */ ;
/** @type {__VLS_StyleScopedClasses['circle-1']} */ ;
/** @type {__VLS_StyleScopedClasses['circle']} */ ;
/** @type {__VLS_StyleScopedClasses['circle-2']} */ ;
/** @type {__VLS_StyleScopedClasses['circle']} */ ;
/** @type {__VLS_StyleScopedClasses['circle-3']} */ ;
/** @type {__VLS_StyleScopedClasses['login-card']} */ ;
/** @type {__VLS_StyleScopedClasses['login-header']} */ ;
/** @type {__VLS_StyleScopedClasses['login-title']} */ ;
/** @type {__VLS_StyleScopedClasses['login-desc']} */ ;
/** @type {__VLS_StyleScopedClasses['login-form']} */ ;
/** @type {__VLS_StyleScopedClasses['input-focus']} */ ;
/** @type {__VLS_StyleScopedClasses['input-focus']} */ ;
/** @type {__VLS_StyleScopedClasses['code-container']} */ ;
/** @type {__VLS_StyleScopedClasses['input-focus']} */ ;
/** @type {__VLS_StyleScopedClasses['code-img']} */ ;
/** @type {__VLS_StyleScopedClasses['code-img-src']} */ ;
/** @type {__VLS_StyleScopedClasses['code-refresh']} */ ;
/** @type {__VLS_StyleScopedClasses['remember-item']} */ ;
/** @type {__VLS_StyleScopedClasses['forgot-link']} */ ;
/** @type {__VLS_StyleScopedClasses['login-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['other-login']} */ ;
/** @type {__VLS_StyleScopedClasses['other-line']} */ ;
/** @type {__VLS_StyleScopedClasses['other-text']} */ ;
/** @type {__VLS_StyleScopedClasses['other-line']} */ ;
/** @type {__VLS_StyleScopedClasses['social-login']} */ ;
/** @type {__VLS_StyleScopedClasses['social-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['wechat']} */ ;
/** @type {__VLS_StyleScopedClasses['social-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['alipay']} */ ;
/** @type {__VLS_StyleScopedClasses['social-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['twitter']} */ ;
/** @type {__VLS_StyleScopedClasses['code-container']} */ ;
/** @type {__VLS_StyleScopedClasses['send-code']} */ ;
// @ts-ignore
var __VLS_5 = __VLS_4, __VLS_115 = __VLS_114;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
